<<<<<<< .mine
$(function(){

	tinyMCE.init({
		// General options
		mode : "textareas",
		editor_selector: "mce_edit",
		theme : "advanced",
		plugins : "fullscreen",
		skin : "o2k7",
		skin_variant : "silver",
		language : "ja",
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,filemanager,flickr,youtube,googlemap",
	
		// Theme options
		theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,fontsizeselect,forecolor,backcolor",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,link,unlink,anchor,image,insertfile,insertdate,inserttime,|,preview,fullscreen,code",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,|,sub,sup,|,charmap,media,advhr,|,fullscreen,template,|,flickr,youtube,googlemap",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
	
		// Example content CSS (should be your site CSS)
		content_css : "http://investment.bird-i.co.jp/assets/styles/default.css",
	
		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "./assets/scripts/tiny_mce/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",
	
		//callback
		//oninit : ready,
	
		// Style formats
		style_formats : [
			{title : '見出し2', block : 'h2', classes:'tm'},
			{title : '見出し3', block : 'h3', classes:'tm'},
			{title : '見出し4', block : 'h4'},
			{title : '見出し5', block : 'h5'}
		]
	});
});

/*
var setFileManager = function(){
	$('body').append('<div id="modal_background" class="white">modal is active</div>');
	$('#modal_background').show();
	var t = $('body').scrollTop()+$('#filemanager').height()/2.5;
	$('#filemanager').hide().css({'top':t+"px"}).show();	
	$('#filemanager .selected').html("");
	$('#filemanager .right > p span').html("0");
}

function ready() {
	var p = $('#page_text_image').parent();
	p.html('<a role="button" id="page_text_image" href="javascript:;" class="mceButton mceButtonEnabled mce_image" onmousedown="return false;" onclick="return false;" aria-labelledby="page_text_image_voice" title="画像の挿入や編集" tabindex="-1"><span class="mceIcon mce_image"></span><span class="mceVoiceLabel mceIconOnly" style="display: none;" id="page_text_image_voice">画像の挿入や編集</span></a>');
	$('#page_text_image').click(function(){
		setFileManager();
	});	
}
*/=======
$(function(){

	tinyMCE.init({
		// General options
		mode : "textareas",
		editor_selector: "mce_edit",
		theme : "advanced",
		plugins : "fullscreen",
		skin : "o2k7",
		skin_variant : "silver",
		language : "ja",
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,filemanager,flickr,youtube,googlemap",

		// Theme options
		theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,fontsizeselect,forecolor,backcolor",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,link,unlink,anchor,image,insertfile,insertdate,inserttime,|,preview,fullscreen,code",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,|,sub,sup,|,charmap,media,advhr,|,fullscreen,template,|,flickr,youtube,googlemap",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		content_css : "http://investment.bird-i.co.jp/assets/styles/default.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "./assets/scripts/tiny_mce/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Style formats
		style_formats : [
			{title : '見出し2', block : 'h2', classes:'tm'},
			{title : '見出し3', block : 'h3', classes:'tm'},
			{title : '見出し4', block : 'h4'},
			{title : '見出し5', block : 'h5'}
		]
	});
});
>>>>>>> .r117
